package com.youlu.campus.entity.form;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.form.domain.UserSubmitSingleForm;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户提交的表单明细，一个表单项一条数据
 */
@Getter
@Setter
@Document(collection = "user_form_task_detail_info")
public class UserFormTaskDetailInfo extends EntityBase {
    @Indexed
    private String userFormTaskInfoId;
    /**
     * 表单项ID
     */
    private String singleFormQuestionId;
    /**
     * 排序号
     */
    private Integer no;
    /**
     * 类型，
     * single-choice:单选题
     * multiple-choice:多项选择题
     * text-box:文本框
     * file-upload:文件上传
     * image-upload:图片上传
     * video-upload:视频上传
     * number-box:数字输入框
     * date-box:数字输入框
     */
    private String type;
    /**
     * 用户提交表单数据
     */
    private List<UserSubmitSingleForm> datas = new ArrayList<>();

}
